<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>{{message}}</p>
        <hr/>
        <!-- <div v-if="isLogin">你好：胡少</div>
        <div v-else>请登录</div> -->
        <div v-show="isLogin">你好：胡少</div>
        <ul>
            <li v-for="cur in items">{{cur}}</li>
        </ul>

        <p>
            <span v-text="span1"></span>
            <span v-html="span2"></span>
        </p>
    </div>
    <script>
        // let app = document.getElementById('app')
        // app.innerHTML = 'Hello world'

        let app = new Vue({
            el: '#app',
            data: {
                message: 'Hello Vue!',
                isLogin: false,
                items:[10,11,12,13,14,15],
                span1:'你好',
                span2:'<h2>你好</h2>'
            }
        })
    </script>
</body>
</html>